//    Copyright (C) Clear Office.  All rights reserved.
using System;
using Office.Core.Serialization;

namespace Office.Spreadsheet.PivotTable
{
    internal class Field : IOfficeXmlSerializable
    {
        private int _x;

        public void ReadXml(ReadContext context)
        {
            using (var c = context.Read ("field"))
            {
                _x = c.GetInteger("x");
            }
        }

        public void WriteXml(WriteContext context)
        {
            using (var c = context.Write("field"))
            {
                c.SetInteger("x", _x);
            }
        }
    }
}